package rpc.bootstrap.spring;

import org.springframework.context.ApplicationContext;
import rpc.core.RpcApp;

/*********
 *
 *
 *@author 197
 *@date 2020/6/18 20:41
 *
 **/


public class SpringBootstrap {

  private final static SpringBootstrap instance = new SpringBootstrap();


  private RpcApp rpcApp;
  private ApplicationContext context;

  public static SpringBootstrap getInstance() {
    return SpringBootstrap.instance;
  }

  public void initApplicationContext(ApplicationContext context) {
    this.context = context;
  }

  public ApplicationContext getContext() {
    return context;
  }

  public RpcApp getRpcApp() {
    return rpcApp;
  }

  public void setRpcApp(RpcApp rpcApp) {
    this.rpcApp = rpcApp;
  }
}
